//
//  MyImageView.m
//  HandheldHospital
//
//  Created by zhangchao on 16/3/2.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "MyImageView.h"

@implementation MyImageView
-(void)MyTarget:(id)target Action:(SEL)action{
    
    _target = target;
    _action  = action;
    
}


-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    if ([_target respondsToSelector:_action]) {
        
        [_target performSelector:_action withObject:self];
    }
}

@end
